package pri.ydy.eduService;

import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.cloud.client.discovery.EnableDiscoveryClient;
import org.springframework.cloud.openfeign.EnableFeignClients;
import org.springframework.context.annotation.ComponentScan;

/**
 * @author Ydy
 * @date 2020/9/23 - 18:50
 */
@EnableDiscoveryClient  //Nacos注册
@EnableFeignClients //Feign服务调用
@SpringBootApplication
@ComponentScan(basePackages = {"pri.ydy"})  //扫描更多包 不加只能扫描当前模块
public class EduApplication {
    public static void main(String[] args) {

        SpringApplication.run(EduApplication.class,args);
    }
}
